<!-- 加载layout.html -->
{{extend('./layout.html')}}
			
{{#block('main')}}			
	<div class="main-container">
		<div class="padding-md">
			<ul class="breadcrumb">
				<li><span class="primary-font"><i class="icon-home"></i></span><a href="index.html"> 主页</a></li>
				<li>课程管理</li>	 
				<li>课程列表</li>
				<li class="pull-right"><a href="/admin/subject/subject_add" class="btn btn-primary">添加课程</a></li>
			</ul>

			<table class="table table-striped" id="dataTable">
				<thead>
					<tr>
						<th>序号</th>
						<th>课程名称</th>
						<th>就读学分</th>
						<!-- <th>课程状态</th> -->
						<th style="width: 200px;">操作</th>
						<th style="width: 100px;"  class="text-center">
							<a href="javascript:;" class="btn btn-danger widget-remove-option" id='0' ctrname="subject" >批量删除</a>
							<br>
							<br>
							<div class="custom-checkbox">
								<input type="checkbox" id="chkAll" class="inbox-check">
								<label for="chkAll"></label>
							</div>
						</th>
					</tr>
				</thead>
				<tbody>
					{{#each(subList)}}
					<tr >
						<td>{{start+xindex+1}}</td>
						<td>{{this.sub_name}}</td>
						<td>{{this.sub_score}}</td>
						<!-- <td><span class="label label-success">In Stock</span></td> -->
						<td>
							<a href="/admin/subject/subject_edit/{{this.sub_id}}" class="btn btn-success">修改</a>
							<a href="javascript:;" class="btn btn-danger widget-remove-option" id="{{this.sub_id}}" ctrname="subject">删除</a>
						</td>
						<td class="text-center">
							<div class="custom-checkbox">
								<input type="checkbox" id="chk{{xindex+1}}" class="inbox-check"  sid="{{this.sub_id}}">
								<label for="chk{{xindex+1}}"></label>
							</div>
						</td>
					</tr>
					{{/each}}
				</tbody>
			</table>
			{{include('./page.html')}}
		</div><!-- ./padding-md -->
	</div><!-- /main-container -->
{{/block}}

